<div class="widget-header">
    {%$url = $smarty.server.REQUEST_URI|split_url%}
    <div class="content">
        <a href="/"><img class="logo" src="./image/logo.png"></a>
        <ul class="nav">
            <li><a href="/" {%if $url=='' ||  $url=='/' || $url=='/index'%}class="active"{%/if%}>首页</a></li>
            <li><a href="/index/demand" {%if $url=='/index/demand'%}class="active"{%/if%}>活期</a></li>
            <li><a href="/index/term" {%if $url=='/index/term'%}class="active"{%/if%}>定期</a></li>
            <li><a href="/index/guide" {%if $url=='/index/guide'%}class="active"{%/if%}>新手入门</a></li>
            <li></li>
            {%if $user_name%}
                <li><a href="/user/wallet" class="people">我的账户</a></li>
                <li><a  href="/account/logout">退出</a></li>
            {%else%}
                <li><a  href="/account/login" class='people'>登录</a></li>
                <li><a  href="/account/register" class="register">注册</a></li>
            {%/if%}
        </ul>
    </div>
</div>